package stool.factory;

/**
 * @author Felix YF Dong
 * @date 2021/5/3
 */
public class Main {

    public static void main(String[] args) {

        IFactory factory = new AddFactory();
        Operation operation = factory.createOperation();
        operation.setNumberA(1);
        operation.setNumberB(1);
        System.out.println(operation.getResult());
    }
}
